package com.example.eamh2system;

import com.example.eamh2system.netty.H2NettyClient;
import com.example.eamh2system.netty.H2NettyServer;
import javafx.application.Application;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.stereotype.Component;

@Component
public class ApplicationRunner implements org.springframework.boot.ApplicationRunner {

    @Autowired
    H2NettyClient h2NettyClient;
    @Autowired
    H2NettyServer h2NettyServer;

    @Override
    public void run(ApplicationArguments args) throws Exception {
//        h2NettyServer.start();
        h2NettyClient.start();

    }
}
